package com.group.eams.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.group.eams.pojo.dto.AssetDetailQueryDto;
import com.group.eams.pojo.dto.RepairRecordQueryDto;
import com.group.eams.pojo.entity.RepairRecord;
import com.group.eams.pojo.vo.FixedAssetListVo;
import com.group.eams.pojo.vo.RepairRecordListVo;
import com.group.eams.service.RepairRecordService;
import com.group.eams.mapper.RepairRecordMapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 恩哲欣
* @description 针对表【repair_record(维修记录)】的数据库操作Service实现
* @createDate 2024-10-29 16:09:34
*/
@Service
public class RepairRecordServiceImpl extends ServiceImpl<RepairRecordMapper, RepairRecord>
implements RepairRecordService{

    @Override
    public Page<RepairRecordListVo> findRepairRecordByPage(Page<RepairRecord> page, RepairRecordQueryDto repairRecordQueryDto) {
        return  getBaseMapper().findRepairRecordByPage(page, repairRecordQueryDto);
    }

    @Override
    public Page<FixedAssetListVo> findDetailByPage(Page<RepairRecord> page, AssetDetailQueryDto assetDetailQueryDto) {
        return getBaseMapper().findDetailByPage(page, assetDetailQueryDto);
    }

    @Override
    public List<RepairRecord> findByRepairRecordNum(String repairRecordNum) {
        return getBaseMapper().findByRepairRecordNum(repairRecordNum);
    }
}
